package array;

public class exam_watch {
	public static void main(String[] args) {
		int[] x = new int[5];
		x[4] = 2; 
		//x[5] = 3;
		
		int[] z = new int[2];
		int y = -3;
		//z[y] = 4;
		
		//2D array
		int[][] scores = new int[3][];
		scores[0] = new int[4];
		scores[1] = new int[6];
		scores[2] = new int[1];
		
		//shortcut 
		int x1 = 9;
		int[] dots = {6,x1,8};
		
		Dog puppy = new Dog("Frodo");
		Dog[] myDogs = {puppy, new Dog("Clover"), new Dog("Aiko")};
		
		int[] blots = new int[3];
		int[] blocks = new int[6];
		//blots = blocks;
		blocks = blots;
	}
}

class Dog {
	String name;
	public Dog(String name){
		this.name = name;
	}
}
